<template>
  <div class="money">
    <div class="header">
      <van-nav-bar
        title="健康钱包"
        right-text="设置"
        left-arrow
        @click-left="onClickLeft"
        @click-right="onClickRight"
      />
    </div>
    <div class="main">
      <div class="balance"></div>
      <div class="cz">
        <van-grid :column-num="2">
          <van-grid-item text="充值" />
          <van-grid-item text="提现" />
        </van-grid>
      </div>
      <div class="yhk">
        <van-grid direction="horizontal" :column-num="2" :border="false">
          <van-grid-item
            icon="https://z3.ax1x.com/2021/07/17/WlQyZt.png"
            text="账单"
          />
          <van-grid-item
            icon="https://z3.ax1x.com/2021/07/17/WlQcIf.png"
            text="银行卡"
          />
          <van-grid-item
            icon="https://z3.ax1x.com/2021/07/17/WlQTZq.png"
            text="红包"
          />
          <van-grid-item
            icon="https://z3.ax1x.com/2021/07/17/WlQLJU.png"
            text="代金券"
          />
        </van-grid>
      </div>
    </div>
  </div>
</template>
<style lang="less">
.money {
  .header {
    .van-nav-bar__text {
      font-weight: 900;
      color: #000;
    }
    .van-badge__wrapper {
      color: #000;
    }
    .van-nav-bar__title {
      font-weight: 900;
      font-size: 18px;
    }
  }
  .main {
    .balance {
      background: url("https://z3.ax1x.com/2021/07/17/WlKy6A.png");
      background-size: 350px 150px;
      width: 375px;
      height: 150px;
    }
    .van-grid-item__text {
      font-size: 17px;
      color: #000;
    }
    .yhk {
      margin-top: 10px;
      .van-icon__image {
        width: 28px;
        height: 28px;
      }
      .van-grid-item__text {
        font-size: 17px;
        color: #000;
      }
    }
  }
}
</style>
<script>
import { useRouter } from "vue-router";
export default {
  setup() {
    const router = useRouter();
    const onClickLeft = () => {
      router.push("/home/mine");
    };
    return {
      onClickLeft,
    };
  },
};
</script>
